package com.kaluli.project.domain.repository;

import java.util.List;

import com.kaluli.project.domain.entity.KllMainOrder;
import com.kaluli.system.repository.AbstractRepository;

public interface KllMainOrderRepository extends AbstractRepository<KllMainOrder>{
	List<KllMainOrder> getListLimited(int row);
	List<KllMainOrder> getListByNSyn(); //获取未同步过的订单
	boolean updateOrderSynApi(String orderNumber); //更新同步标志
	
	KllMainOrder findByOrderNumber(String orderNumber);
	
	KllMainOrder findByIbillingNumber(String ibillingNumber);
	
	void updateApply(String updStr, String orderNumber);
	
	public void updateDetailRefund(String orderNumber);
	
	public void updateMainRefund(Double price, String orderNumber);
	
	public void updateRefund(Double price,Double fee, String orderNumber);
	
	public void updateTradeNo(String tradeNo, String orderNumber);
	
	public void updateMainStatus(String orderNumber);
	
}
